package com.yanmaohu.nikita.data;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class UseList {

    private final List<Use> useList;

    public UseList(List<Use> useList) {
        this.useList = useList;
    }

    public boolean isEmpty() {
        return useList == null || useList.isEmpty();
    }

    public int size() {
        if (isEmpty()) {
            return 0;
        }
        return useList.size();
    }

    public Use get(int index) {
        if (isEmpty()) {
            return null;
        }
        return useList.get(index);
    }

}
